<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>任务-列表</title>
<link href="<%=path %>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/js/common.js"></script>
<script type="text/javascript">
/*
 *_contextPath:上下文路径
 *_modulePath: 模块路径
 */
var  _contextPath="<%=path%>";
var  _modulePath=_contextPath+"/sys/";
$(document).ready(function(){
  $(".clicks").click(function(){
   _open(_modulePath+"textures_open.action?view=add");
  });
});
</script>
<script type="text/javascript">
	//删除
	$(document).ready(function(){
			var id;
			var dataName;
			var url;
  			$(".tablelinkdelete").click(function(){
  			id = $(this).attr("idValue");
  			tid = $(this).attr("tidValue");
 			url =" <%= basePath%>/biz/ServiceTask_delData.action?serviceData.id="+id+"&serviceTask.id="+tid;
 			 $(".tip").fadeIn(200);
 			 });
  
 			 $(".tiptop a").click(function(){
 			 $(".tip").fadeOut(200);
			});

  			$(".sure").click(function(){
  			$(".tip").fadeOut(100);
  					window.location.href=url;
			});

				  $(".cancel").click(function(){
				  $(".tip").fadeOut(100);
				});
		
	});
</script>

<style type="text/css">
.tablelinkdelete{color:#056dae;}
</style>
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">任务管理</a></li>
    <li><a href="#">任务列表</a></li>
    <li><a href="#">详情</a></li>
    </ul>
    </div>
<div class="formbody">
    <div id="usual1" class="usual">
      <div id="tab2" class="tabson">
      
     	<form action="<%= basePath%>/biz/ServiceTask_openDetails.action" method="post"  target="rightFrame">
    	<ul class="seachform">
    	<input type="hidden" name="serviceTask.id" value="${serviceTask.id }"/>
    	<c:forEach items="${filedNames }" var="filedName">  
        <li><label>${filedName }</label><input class="scinput" name="serviceData.datas"   placeholder="请输入${filedName }"/></li>
        </c:forEach>
 
            <li><input name="" type="submit" class="scbtn" value="查询"/></li>
            <li ><a href="<%= basePath%>/biz/ServiceTask_toExcel.action?serviceTask.id=${serviceTask.id}" ><input name="" type="button" class="scbtn" value="导出"/></a></li>
           <%--  <p:permissions right="addRight" >
            	<li class="clickk"><span><img src="<%=path%>/images/t01.png" /></span><a href="<%= basePath%>/biz/ServiceTask_openApplyAdd.action">申请预约</a></li>
            </p:permissions> --%>
        </ul>
        </form> 
    <table class="tablelist">
    	<thead>
    	<tr>
        <c:forEach items="${filedNames }" var="filedName">
        <th>&nbsp;&nbsp;&nbsp;${filedName }</th>
        </c:forEach>
        </tr>
        
        </thead>
        <tbody>
      
        <s:iterator value="dataList">
        <tr>
      	<c:forEach items='${datas}' var='list'>
  			<td>${list }</td>
 		</c:forEach>
      
 	     </tr> 
        </s:iterator>
      
        </tbody>
    </table>
  </div>  
       
	</div>
    
    <!-- 分页菜单组件--------------------------开始 -->
<%
//查询的url地址，统一写
String listActionURL = basePath+"/biz/ServiceTask.action";
%>
 
 
<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</div>
	  <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        <div class="tipinfo">
        <span><img src="<%= basePath%>images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认删除信息 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
	

</body>

</html>
